home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 52
/
Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso
/
Aminet
/
dev
/
lang
/
amigatalk.lha
/
intuition
/
BoopsiScrollerTags.st
< prev
next >
Wrap
Text File
|
2002-05-07
|
2KB
|
75 lines
" --------------------------------------------------------------------- "
" BoopsiScrollerTags Class is a Singleton class that allows the user "
" to reference BOOPSI Scroller class tags' hexadecimal values. "
""
" EXAMPLE: 'myTag <- scrollerTags getTag: #SCROLLER_Total' "
""
" ALL singleton classes MUST contain the following: "
""
" the methods: isSingleton AND privateSetup AND "
" uniqueInstance Class instance variable. "
" --------------------------------------------------------------------- "
Class BoopsiScrollerTags :Dictionary ! uniqueInstance !
[
isSingleton
^ true
|
privateNew ! newinstance !
newinstance <- super new.
^ newinstance
|
new
^ self privateSetup
|
getTag: tagKey
^ self at: tagKey
|
privateInitializeDictionary
" (WORD) scroller Top value (Defaults to 0). "
self at: #SCROLLER_Top put: 16r85005001.
" (WORD) visible part of total. "
self at: #SCROLLER_Visible put: 16r85005002.
" (WORD) total scroller size. "
self at: #SCROLLER_Total put: 16r85005003.
" (WORD) Vertical or Horizontal mode. "
self at: #SCROLLER_Orientation put: 16r85005004.
" (BOOL) Render arrows. "
self at: #SCROLLER_Arrows put: 16r85005005.
" (BOOL) AutoExpand/Stretch Total. "
self at: #SCROLLER_Stretch put: 16r85005006.
" (WORD) Change arrow click makes. "
self at: #SCROLLER_ArrowDelta put: 16r85005007.
" (struct Task *) Signal this Task while scroller is active "
self at: #SCROLLER_SignalTask put: 16r8500500A.
" (ULONG) Signal with this Bit. "
self at: #SCROLLER_SignalTaskBit put: 16r8500500B.
" SCROLLER_Orientation Modes "
self at: #SORIENT_HORIZ put: 2. " FREEHORIZ "
self at: #SORIENT_VERT put: 4. " FREEVERT "
self at: #SCROLLER_HORIZONTAL put: 2.
self at: #SCROLLER_VERTICAL put: 4.
|
privateSetup
(uniqueInstance isNil)
ifTrue: [uniqueInstance <- self privateNew.
self privateInitializeDictionary.
].
^ self "or ^ uniqueInstance??"
]